package cn.cloudtogo.support.mysql.column;

import cn.cloudtogo.common.types.RequestHeaderObject;

import java.util.List;

/**
 * @author yaolianhua789@gmail.com
 **/
public interface ColumnApi {

    void delete(RequestHeaderObject requestHeaderObject, String table, String column);

    void add(RequestHeaderObject requestHeaderObject, String table, ColumnDefinition definition);

    void setPrimary(RequestHeaderObject requestHeaderObject, String table, List<String> key);

    List<String> listPrimary(RequestHeaderObject requestHeaderObject, String table);

    void update(RequestHeaderObject requestHeaderObject, String table, ColumnDefinition definition, String newColumnName);

}
